package com.djq.project.mq.consumer.common;

import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
    /**
     * 一般模式
     * @return
     */
    @Bean
    public Queue commonQueue(){
        return new Queue("common",true);
    }


    /**
     * 工作模式 - 竞争
     * @return
     */
    @Bean
    public Queue workQueue(){
        return new Queue("work",true);
    }
}
